﻿using System;

namespace ZilLion.Service.Core.Infrastructure.Middleware.WebSocket.Interface
{
    /// <summary>
    /// 策略模式工厂
    /// </summary>
    public interface IMessageHandleStrategyFactory
    {
        /// <summary>
        /// 获取策略的实例
        /// </summary>
        /// <param name="messageType"></param>
        /// <returns></returns>
        IMessageHandleStrategy GetStrategyInstance(string messageType);

        /// <summary>
        /// 注册策略
        /// </summary>
        /// <param name="strategyType"></param>
        void RegisterStrategy(Type strategyType);
    }
}